package com.bodu.exchange.mapper;


import com.bodu.core.common.CommonMapper;
import com.bodu.exchange.entity.vo.ExchangeBookVo;
import com.bodu.exchange.entity.request.ExchangeBookRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 记账本 Mapper
* @author Administrator
*/
@Mapper
public interface ExchangeBookMapper extends CommonMapper<ExchangeBookRequest,ExchangeBookVo> {
    List<ExchangeBookVo> bookList(@Param("request") ExchangeBookRequest request);

    Integer updateDefaultFlagByUserId(@Param("userId") Long userId, @Param("defaultFlag") Integer defaultFlag);

    Integer updateDefaultExchangeBookStatus(@Param("id") Long id, @Param("defaultFlag") Integer defaultFlag);
}
